//
//  HNSH_CartShopFooter.m
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/3/2.
//

#import "HNSH_CartShopFooter.h"

@interface HNSH_CartShopFooter ()

/* bgView */
@property (nonatomic, strong) UIView *bgView;

@end

@implementation HNSH_CartShopFooter

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = [UIColor appBGColor];
        [self configUI];
    }
    return self;
}

- (void)configUI {
    [self.contentView addSubview:self.bgView];
}

#pragma mark lazy
- (UIView *)bgView {
    if (!_bgView) {
        _bgView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 8)];
        _bgView.backgroundColor = [UIColor appWhiteLabelColor];
        [self clipCornerWithView:_bgView cornerWidth:8 cornerType:UIRectCornerBottomRight|UIRectCornerBottomLeft];
    }
    return _bgView;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
